package webService.util;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;



import webService.util.Devise;
import webService.util.EtatTransaction;

public class TransactionDTO {

	private Long id;
	
	private String uuidTransaction;
	private EtatTransaction etatTransaction;
	private double somme;
	private Devise devise;
	
	private CompteDTO compteACrediter;
	private CompteDTO compteADebiter;
	private String urlRetour;
	private Long timeOut;
	private String code;
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getUuidTransaction() {
		return uuidTransaction;
	}
	public void setUuidTransaction(String uuidTransaction) {
		this.uuidTransaction = uuidTransaction;
	}
	public EtatTransaction getEtatTransaction() {
		return etatTransaction;
	}
	public void setEtatTransaction(EtatTransaction etatTransaction) {
		this.etatTransaction = etatTransaction;
	}
	public double getSomme() {
		return somme;
	}
	public void setSomme(double somme) {
		this.somme = somme;
	}
	public Devise getDevise() {
		return devise;
	}
	public void setDevise(Devise devise) {
		this.devise = devise;
	}
	public CompteDTO getCompteACrediter() {
		return compteACrediter;
	}
	public void setCompteACrediter(CompteDTO compteACrediter) {
		this.compteACrediter = compteACrediter;
	}
	public String getUrlRetour() {
		return urlRetour;
	}
	public void setUrlRetour(String urlRetour) {
		this.urlRetour = urlRetour;
	}
	public Long getTimeOut() {
		return timeOut;
	}
	public void setTimeOut(Long timeOut) {
		this.timeOut = timeOut;
	}

	
	
	public TransactionDTO( String uuidTransaction,
			EtatTransaction etatTransaction, double somme, Devise devise,
			CompteDTO compteACrediter, CompteDTO compteADebiter,
			String urlRetour, Long timeOut) {
		super();
		this.uuidTransaction = uuidTransaction;
		this.etatTransaction = etatTransaction;
		this.somme = somme;
		this.devise = devise;
		this.compteACrediter = compteACrediter;
		this.compteADebiter = compteADebiter;
		this.urlRetour = urlRetour;
		this.timeOut = timeOut;
		
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public CompteDTO getCompteADebiter() {
		return compteADebiter;
	}
	public void setCompteADebiter(CompteDTO compteADebiter) {
		this.compteADebiter = compteADebiter;
	}
	
	

}
